import 'package:get/get.dart';
import 'package:share_fit/app/models/home/date_type_enum.dart';
import 'package:share_fit/app/models/home/heart_rate_model.dart';
import 'package:share_fit/app/tools/date_tool.dart';
class HeartRatesState {
  final Rx<DateType> selectedDateType = DateType.day.obs;

  /// 右上角日历选择的日期
  DateTime selectedDate = DateTime.now();

  /// 历史数据暂时不做
  Rx<HRSummary> hrSummary = HRSummary().obs;

  HRSummary hrAvgList = HRSummary();

  /// 平均心率
  HRSummary hrAvg = HRSummary();

  /// 当前心率
  String currentHR = '---';

  /// 保存有心率记录的日期列表
  Map<DateTime, List<bool>> dateListOfRecord = {};

  String dateRangeText = DateTool.getYMDWithDash(DateTime.now()).replaceAll('-', '/');

  int dateTypeBarIndex = 0;

  HeartRatesState() {
    ///Initialize variables
  }
}
